package com.jkchen.service;

import com.github.pagehelper.PageInfo;
import com.jkchen.pojo.User;
import com.jkchen.pojo.query.UserQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserService {
    //查询所有用户
    public List<User> findAll();

    //根据用户名来查询用户 并分页展示
    public PageInfo<User> findByName(UserQuery userQuery);

    //删除用户
    public  boolean deleUserById(int id);

    //根据用户名来查找用户
    boolean findUserByName(String name);


    //根据用户ID查找用户
    User findById(Integer id);

    //修改用户
    boolean UpdateUserById(User user);

    //增加用户
    boolean insertUser(User user);
}
